<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/selectImg/css/selectImg.css">
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/selectImg/css/iconfont.css">
    <script src="../../../../../../public-tools/pc/plugins/selectImg/js/selectImg.js"></script>

    <style>
        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .checkbox-inline {
            line-height: 5px;
        }

        .search {
            width: 25%;
        }

        /* 设置搜索框宽度 */
        /*.layui-layer.layui-anim.layui-layer-page {
            width: 550px !important;
        }*/
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row row-lg">

                <div class="example" style="margin-top: -10px;">
                    <div class="btn-group" id="toolbar" role="group">
                        <button type="button" class="btn btn-outline btn-default" @click="add(0)" v-if="permission(0)">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                            添加申请
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="update(1)"
                                v-if="permission(1)">
                            <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
                            修改申请状态
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="auth(1)" v-if="permission(1)">
                            <i class="glyphicon glyphicon-ok" aria-hidden="true"></i>
                            授权品牌
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="del(2)" v-if="permission(2)">
                            <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                            删除
                        </button>
                        <div style="display: inline-block;margin-left: 20px">
                            <select class="form-control" id="status" @change="selectStatus">
                                <option value="">---选择状态---</option>
                                <option value="-1">发起方中断合作</option>
                                <option value="0">接收方中断合作</option>
                                <option value="1">待同意</option>
                                <option value="2">合作中</option>
                            </select>
                        </div>
                    </div>
                    <table id="bootstrapTableEvents"></table>
                </div>

            </div>
        </div>
    </div>


    <div class="ibox float-e-margins" id="select" style="display: none">
        <div class="form-group">
            <label class="col-sm-3 control-label" style="line-height: 28px;">申请理由</label>
            <div class="col-sm-9">
                <textarea style="margin-bottom: 10px;" name="applyReason" v-model="applyReason" class="form-control"
                          rows="3" disabled placeholder="申请理由为空">{{applyReason}}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label" style="line-height: 28px;">状态</label>
            <div class="col-sm-9">
                <select class="form-control" name="status" v-model="status" style="margin-bottom: 10px;">
                    <option value="">---选择状态---</option>
                    <option value="0">中断合作</option>
                    <!--                    <option value="1">待同意</option>-->
                    <option value="2" v-if="canConfirm">合作</option>
                </select>
            </div>
        </div>
        <div class="form-group" v-if="status==0">
            <label class="col-sm-3 control-label" style="line-height: 28px;">中断理由</label>
            <div class="col-sm-9">
                <textarea style="margin-bottom: 10px;" name="interruptReason" v-model="interruptReason"
                          class="form-control" rows="3" placeholder="中断理由为空">{{interruptReason}}</textarea>
            </div>
        </div>

        <div class="form-group" style="text-align: center;padding-top: 10px;clear: both">
            <a href="javascript:layer.closeAll();" class="btn btn-default">关 闭</a>
            <button type="submit" class="btn btn-primary" @click="delUpdate()">确 定</button>
        </div>
    </div>

    <div class="ibox float-e-margins" id="brands" style="display: none">
        <div class="selectImgDiv" id="selectItemDiv">
            <div class="item" v-for="item in brandList" :data-item="item.id">
                <div class="img_show">
                    <img :src="item.showUrl"/>
                </div>
                <div class="img_title">{{item.name}}</div>
                <div class="img_isCheck">
                    <i class="iconfont icon-xuanzhong"></i>
                </div>
            </div>
        </div>
        <div class="form-group" style="text-align: center;padding-top: 10px;clear: both">
            <a href="javascript:layer.closeAll();" class="btn btn-default">关 闭</a>
            <a href="javascript:selectImgTake.selectAll('selectItemDiv');" class="btn btn-warning">全 选</a>
            <button type="submit" class="btn btn-primary" @click="confirmAuth()">确 定</button>
        </div>
    </div>
</div>
<script src="../../../../js/content-manage/cooperate/apply/list.js"></script>
</body>
</html>
